<template>
  <div class="box">
    <div id="error-page">
      <div class="content">
        <h1 data-text="404">404</h1>
        <h4 data-text="哎呀！找不到界面">哎呀！找不到界面</h4>
        <p>抱歉，您要查找的页面不存在。</p>
        <div class="btns">
          <router-link to="/index">返回首页</router-link>
        </div>
      </div>
    </div>
  </div>

</template>

<script>
export default {
  name: 'NotFound',
  methods: {
    reportProblem() {
      // Handle problem reporting logic here
      alert('Problem reporting functionality not implemented.');
    }
  }
}
</script>

<style scoped>
* {
  margin: 0;
  padding: 0;
  outline: none;
  box-sizing: border-box;

}

.box {
  height: 100vh;
  background-image:linear-gradient(to right, #f0f2f0, rgba(0, 12, 64, 0.99));
  background-size: 400%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#error-page {
  width: 90%;
  max-width: 600px;
  padding: 20px;
  background: #fff;
  box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  text-align: center;
}

.content h1 {
  font-size: 20vw;
  line-height: 1em;
  position: relative;
}

.content h1:after {
  position: absolute;
  content: attr(data-text);
  top: 0;
  left: 0;
  right: 0;
  background-image:linear-gradient(to right, #f0f2f0,#000c40);
  background-size: 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.25);
  animation: animate 10s ease-in-out infinite;
}

@keyframes animate {
  0% {
    background-position: 0 0;
  }
  25% {
    background-position: 100% 0;
  }
  50% {
    background-position: 100% 100%;
  }
  75% {
    background-position: 0% 100%;
  }
  100% {
    background-position: 0% 0;
  }
}

.content h4 {
  font-size: 1.5em;
  margin-bottom: 20px;
  text-transform: uppercase;
  color: #000;
  position: relative;
}

.content h4:after {
  position: absolute;
  content: attr(data-text);
  top: 0;
  left: 0;
  right: 0;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.content p {
  font-size: 1.2em;
  color: #0d0d0d;
}

.content .btns {
  margin: 25px 0;
  display: inline-flex;
}

.content .btns a,
.content .btns .router-link {
  display: inline-block;
  margin: 0 10px;
  text-decoration: none;
  border: 2px solid #adcbf1;
  color: #69a6ce;
  font-weight: 500;
  padding: 10px 25px;
  border-radius: 25px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.content .btns a:hover,
.content .btns .router-link:hover {
  background: #adcbf1;
  color: #fff;
}

@media (max-width: 768px) {
  .content h1 {
    font-size: 30vw;
  }

  .content h4 {
    font-size: 1.2em;
  }

  .content p {
    font-size: 1em;
  }
}
</style>